package com.bnq.control.desktop.impl;

import android.app.Service;
import android.content.Context;

import com.bnq.control.desktop.utils.NotificationUtils;
import com.oray.sunlogin.manager.interfaces.INotificationListener;


/**
 * @author: wanghongqiang
 * @data: 2023/8/7
 */
public class NotificationImpl implements INotificationListener {

    public NotificationImpl() {
    }

    /**
     * 绑定通知
     * @param service 服务
     * @param startId id
     */
    @Override
    public void bindNotification(Service service, int startId) {
        NotificationUtils.bindNotification(service,startId);
    }

    /**
     * 通知渠道是否可用
     * @param context 上下文
     * @return 状态
     */
    @Override
    public boolean changeUse(Context context) {
        return NotificationUtils.isChannelCanUse(context);
    }
}
